Skip to main content

externals

Type

property

Summary

Specifies a list of files containing external code that are to be loaded into memory when the stack opens.

Syntax

set the externals of <stack> to <filePathsList>

Description

Use the externals property to use the externals in the specified files.

Each line of the externals specifies the name and location of a file containing external commands and external functions. If you specify a name but not a location, the file is assumed to be in the defaultFolder.

The files are executed when the stack is opened, making the externals in them available to handlers in the stack.

Important

When you install a new external by setting a stack's externals property, LiveCode cannot use it until you either quit LiveCode and then reopen the stack, or close the stack (after setting its destroyWindow property to true) and then reopen it.

Examples

set the externals of stack "Apps" to field "Executables"

function: deleteResource, files

glossary: property, external, file path, loaded into memory

keyword: file

object: stack

property: defaultFolder, imagePixmapID, externalPackages, destroyWindow, externals

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?